import { GameCtx } from "../../GameCtx";
import { IBaseSdk } from "../IBaseSdk";

export class WxSdk implements IBaseSdk{
    private platformIns:any = null
    private videoIns:any = null

    constructor(platformIns:any){
        this.platformIns = platformIns;
    }
    createVideo() {
        //创建广告实例
        this.videoIns = this.platformIns.createRewardedVideoAd({ adUnitId: GameCtx.ins.platformCfg.platform.vedioID });
        this.videoIns.onError((res) => {
            console.log("-------微信 shortVideo加载广告失败:" + JSON.stringify(res))
        });
    }
    
}